﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace NFine.Data.Entity.SystemManage
{
    [Table("sys_user_role")]
    public class UserRole
    {
        [Key]
        public long Id { get; set; }
        public long? TenantId { get; set; }
        public Tenant Tenant { get; set; }
        public long UserId { get; set; }
        public virtual User User { set; get; }
        public long RoleId { get; set; }        
        public virtual Role Role { set; get; }
        public bool? DeletedMark { get; set; }
        public DateTime? CreatedTime { get; set; }
        public long? CreatorUserId { get; set; }
        public DateTime? ModifiedTime { get; set; }
        public long? ModifierUserId { get; set; }
        public DateTime? DeletedTime { get; set; }
        public long? DeleterUserId { get; set; }
    }
}
